import java.util.Scanner;

public class h_12 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.print("当月利润(>=0)：");
        int r=sc.nextInt();
        double sum=0;
        if(r<=10){
            sum=r*0.1;
        }else if(r<=20){
            sum=1+(r-10)*0.075;
        }else if(r<=40){
            sum=1+0.75+(r-20)*0.005;
        }else if(r<=60){
            sum=1+0.75+0.1+(r-40)*0.003;
        }else if(r<=100){
            sum=1+0.75+0.1+0.06+(r-60)*0.0015;
        }else {
            sum=1+0.75+0.1+0.06+0.06+(r-100)*0.001;
        }
        System.out.println("发放总金："+sum);
    }
}
